package com.r2coding.music.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.r2coding.common.util.PageUtils;
import com.r2coding.common.util.Result;
import com.r2coding.common.util.Query;

import com.r2coding.music.dao.SongListCategoryDao;
import com.r2coding.music.entity.SongListCategoryEntity;
import com.r2coding.music.service.SongListCategoryService;

/**
 * 歌单分类
 *
 * @author 98k灬
 * @email hk666zx@163.com
 * @date 2022-05-14 16:21:09
 */
@Service("songListCategoryService")
public class SongListCategoryServiceImpl extends ServiceImpl<SongListCategoryDao, SongListCategoryEntity> implements SongListCategoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SongListCategoryEntity> page = this.page(
                new Query<SongListCategoryEntity>().getPage(params),
                new QueryWrapper<SongListCategoryEntity>()
        );

        return new PageUtils(page);
    }

}